<?xml version="1.0"?>
<recipe> 
	<instantiate from="root/src/app_package/Activity.java.ftl"
		to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
	
	<instantiate from="root/res/layout/layout.xml.ftl"
		to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
	
	<#if generateViewModel >
		<instantiate from="root/src/app_package/ViewModel.java.ftl"
			to="${escapeXmlAttribute(srcOut)}/viewModel/${viewModelName}.java" />
	</#if>
	
	<#if generateFragment >
		<instantiate from="root/src/app_package/TabBarFragment.java.ftl"
			to="${escapeXmlAttribute(srcOut)}/fragment/${fragmentName}.java" />
		<instantiate from="root/res/layout/layout_fragment.xml.ftl"
		to="${escapeXmlAttribute(resOut)}/layout/${fragmentLayoutName}.xml" />
	</#if>
	
	
	<merge from="root/build.gradle.ftl"
		 to="${escapeXmlAttribute(projectOut)}/build.gradle" />
		 
    <merge from="root/manifest.xml.ftl"
             to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />
	<#if activityLabel != "">
		<merge from="root/res/values/strings.xml.ftl"
				 to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
	</#if>
  <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
</recipe>
